package com.open.cloud.rbac.object.user;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.open.cloud.rbac.entity.orgpost.CorePost;
import com.open.cloud.rbac.entity.user.CoreUser;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
@ApiModel("用户信息Vo")
public class CoreUserVo extends CoreUser {
    @ApiModelProperty(value = "用户名称")
    private String userLoginName;

    @ApiModelProperty(value = "登录失败次数")
    private Integer loginFailTimes;

    @ApiModelProperty(value = "最后登录时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date lastLoginTime;

    @ApiModelProperty(value = "锁定时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date lockTime;

    @ApiModelProperty(value = "锁定类型 当前用户ID")
    @TableField("lock_type")
    private String lockType;

    @ApiModelProperty(value = "login_ip")
    private String loginIp;

    @ApiModelProperty(value = "是否为初始密码 0 -修改密码1 -初始密码")
    private String initPasswordFlag;

    @ApiModelProperty(value = "状态")
    private String status;

    @ApiModelProperty(value = "状态")
    private List<CorePost> postList;

}
